Skip to content

Conversation

bluss
Copy link
Contributor

@bluss bluss commented Aug 23, 2014

With no custom message, we should just use concat! + stringify! for
assert!(expr) to avoid the string formatting code path.

Inspired by issue #16625

…ase.

With no custom message, we should just use concat! + stringify! for
`assert!(expr)`.

Inspired by issue #16625
bors added a commit that referenced this pull request Aug 24, 2014
With no custom message, we should just use concat! + stringify! for
`assert!(expr)` to avoid the string formatting code path.

Inspired by issue #16625
@bors bors closed this Aug 24, 2014
@bors bors merged commit 262d5a4 into rust-lang:master Aug 24, 2014
@bluss bluss deleted the assert-bloat branch August 24, 2014 07:44
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 10, 2024
Add more methods for resolving definitions from AST to their corresponding HIR types

In order to be able to add these methods with consistent naming I had to also rename two existing methods that would otherwise be conflicting/confusing:

`Semantics::to_module_def(&self, file: FileId) -> Option<Module>` (before)
`Semantics::file_to_module_def(&self, file: FileId) -> Option<Module>` (after)

`Semantics::to_module_defs(&self, file: FileId) -> impl Iterator<Item = Module>` (before)
`Semantics::file_to_module_defs(&self, file: FileId) -> impl Iterator<Item = Module>` (after)

(the PR is motivated by an outside use of the `ra_ap_hir` crate that would benefit from being able to walk a `hir::Function`'s AST, resolving its exprs/stmts/items to their HIR equivalents)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants